package com.ruoyi.basedocument.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * BOM原材料对象 t_bom_rawmaterial
 * 
 * @author ruoyi
 * @date 2024-09-12
 */
public class BomRawmaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String materialnumber;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialname;

    /** 计量单位编码 */
    @Excel(name = "计量单位编码")
    private String unitnumber;

    /** 计量单位名称 */
    @Excel(name = "计量单位名称")
    private String unitname;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 是否含税 */
    @Excel(name = "是否含税")
    private String istaxprice;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal taxrate;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectivedate;

    /** 失效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiredate;

    /** 一级分类名称 */
    @Excel(name = "一级分类名称")
    private String kingdeeid;

    /** 是否手工新增 */
    @Excel(name = "是否手工新增")
    private String status;

    /** 停用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "停用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stopdate;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 简称 */
    @Excel(name = "简称")
    private String simplename;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMaterialnumber(String materialnumber) 
    {
        this.materialnumber = materialnumber;
    }

    public String getMaterialnumber() 
    {
        return materialnumber;
    }
    public void setMaterialname(String materialname) 
    {
        this.materialname = materialname;
    }

    public String getMaterialname() 
    {
        return materialname;
    }
    public void setUnitnumber(String unitnumber) 
    {
        this.unitnumber = unitnumber;
    }

    public String getUnitnumber() 
    {
        return unitnumber;
    }
    public void setUnitname(String unitname) 
    {
        this.unitname = unitname;
    }

    public String getUnitname() 
    {
        return unitname;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setIstaxprice(String istaxprice) 
    {
        this.istaxprice = istaxprice;
    }

    public String getIstaxprice() 
    {
        return istaxprice;
    }
    public void setTaxrate(BigDecimal taxrate) 
    {
        this.taxrate = taxrate;
    }

    public BigDecimal getTaxrate() 
    {
        return taxrate;
    }
    public void setEffectivedate(Date effectivedate) 
    {
        this.effectivedate = effectivedate;
    }

    public Date getEffectivedate() 
    {
        return effectivedate;
    }
    public void setExpiredate(Date expiredate) 
    {
        this.expiredate = expiredate;
    }

    public Date getExpiredate() 
    {
        return expiredate;
    }
    public void setKingdeeid(String kingdeeid) 
    {
        this.kingdeeid = kingdeeid;
    }

    public String getKingdeeid() 
    {
        return kingdeeid;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setStopdate(Date stopdate) 
    {
        this.stopdate = stopdate;
    }

    public Date getStopdate() 
    {
        return stopdate;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setSimplename(String simplename) 
    {
        this.simplename = simplename;
    }

    public String getSimplename() 
    {
        return simplename;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialnumber", getMaterialnumber())
            .append("materialname", getMaterialname())
            .append("unitnumber", getUnitnumber())
            .append("unitname", getUnitname())
            .append("price", getPrice())
            .append("istaxprice", getIstaxprice())
            .append("taxrate", getTaxrate())
            .append("effectivedate", getEffectivedate())
            .append("expiredate", getExpiredate())
            .append("kingdeeid", getKingdeeid())
            .append("status", getStatus())
            .append("stopdate", getStopdate())
            .append("description", getDescription())
            .append("simplename", getSimplename())
            .toString();
    }
}
